package com.longlong.backend;

import com.longlong.backend.dao.UserDao;
import com.longlong.backend.service.UserService;
import com.longlong.backend.util.MySpring;

import java.io.IOException;

/**
 * @author longlong
 * @date 2025/1/24
 */
public class Main {

    public static void main(String[] args) throws IOException {
        UserDao userDao = MySpring.getBean("com.longlong.backend.dao.UserDao");
        System.out.println(userDao.selectById(1));
        UserService userService = MySpring.getBean("com.longlong.backend.service.UserService");
        userService.test();
    }
}
